const PROCESSING_STATUS_OPTIONS = [
  {
    value: 'PENDING',
    label: '待处理'
  },
  {
    value: 'AUDIT',
    label: '待审核'
  },
  {
    value: 'OK',
    label: '已完成'
  }
]

const LOGISTICS_STOCK_OPTIONS = [
  {
    value: '1',
    label: '存量属性'
  },
  {
    value: '2',
    label: '淘汰'
  },
  {
    value: '3',
    label: '积压促销'
  }
]

export const FORM_ITEMS = [
  {
    prop: 'processState',
    label: '处理状态',
    type: 'select',
    options: PROCESSING_STATUS_OPTIONS
  },
  {
    prop: 'logisticsStock',
    label: '存量属性',
    type: 'select',
    options: LOGISTICS_STOCK_OPTIONS
  },
  {
    prop: 'createTime',
    label: '统计日期',
    type: 'datePicker',
    datePickerType: 'daterange',
    valueFormat: 'yyyy-MM-dd'
  },
  {
    prop: 'skuNo',
    label: 'SKU编码',
    type: 'input'
  },
  {
    prop: 'authDeptName',
    label: '归属部门',
    type: 'input'
  },
  {
    prop: 'categoryUuids',
    label: '品类',
    type: 'slot',
    slotName: 'category',
    defaultVal: []
  },
];

export const TABLE_COLUMNS = [
  {
    title: '处理状态',
    key: 'processStateStr',
  },
  {
    title: '统计日期',
    key: 'createOpeTime'
  },
  {
    title: 'SKU编码',
    key: 'skuNo'
  },
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: '规格',
    key: 'spec'
  },
  {
    title: '计量单位',
    key: 'unitName'
  },
  {
    title: '存量属性',
    key: 'logisticsStockStr'
  },
  {
    title: '淘汰原因',
    key: 'eliminateInfoDTO.reason'
  },
  {
    title: '淘汰单据号',
    key: 'eliminateInfoDTO.recordNo'
  },
  {
    title: '淘汰人',
    key: 'eliminateInfoDTO.pusherName'
  },
  {
    title: '商品管理区域',
    key: 'manageAreaName'
  },
  {
    title: '四级类编码',
    key: 'categoryNo'
  },
  {
    title: '四级类名称',
    key: 'categoryName'
  },
  {
    title: '是否金属制品',
    key: 'isMetalStr'
  },
  {
    title: '归属部门',
    key: 'authDeptName'
  },
  {
    title: '近1年销量',
    key: 'sales'
  },
  {
    title: '商品准入时间',
    key: 'prepareTime'
  }
];

export const LOG_TABLE_COLUMNS = [
  {
    title: '四级类代码',
    key: 'imageOper'
  },
  {
    title: '四级类名称',
    key: 'imageOper'
  },
  {
    title: 'SKU编码',
    key: 'imageOper'
  },
  {
    title: '品牌',
    key: 'imageOper'
  },
  {
    title: '商品名称',
    key: 'imageOper'
  },
  {
    title: '规格',
    key: 'imageOper'
  },
  {
    title: '计量单位',
    key: 'imageOper'
  },
  {
    title: '成本价',
    key: 'imageOper'
  },
  {
    title: '售价',
    key: 'imageOper'
  },
  {
    title: '上下架状态',
    key: 'imageOper'
  },
  {
    title: '关联客户',
    key: 'imageOper'
  },
  {
    title: '图文',
    key: 'imageOper'
  },
  {
    title: '预计下架时间',
    key: 'imageOper'
  },
  {
    title: '操作人',
    key: 'imageOper'
  }
]

export const SESSION_KEY = 'elimiated-goods-skuNos';
